package com.yunsc.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yunsc.common.utils.PageUtils;
import com.yunsc.common.utils.Query;

import com.yunsc.dao.YunscStoreAddressDao;
import com.yunsc.module.entity.YunscStoreAddressEntity;
import com.yunsc.service.YunscStoreAddressService;


@Service("yunscStoreAddressService")
public class YunscStoreAddressServiceImpl extends ServiceImpl<YunscStoreAddressDao, YunscStoreAddressEntity> implements YunscStoreAddressService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<YunscStoreAddressEntity> page = this.page(
                new Query<YunscStoreAddressEntity>().getPage(params),
                new QueryWrapper<YunscStoreAddressEntity>()
        );

        return new PageUtils(page);
    }

}